package com.speed_run.controller;

import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/v1/api")
public class TestController {
	

	@GetMapping("/book")
	public String  getBookList(){
	    return "index";
	}
	

	@PostMapping("/book")
	public ResponseEntity<?> createBook(){

	    return new  ResponseEntity<>("12345",HttpStatus.OK);
	}
	@GetMapping("/test")
	public Object test(){
	    return 123;
    }
}
